import 'package:ceramics/styles/ab_styles.dart';
import 'package:enhanced_button/enhanced_button.dart';
import 'package:flutter/material.dart';

class ABElevateButton extends StatelessWidget {
  final Widget child;
  final VoidCallback onPressed;
  final ButtonStyle? style;
  const ABElevateButton({super.key,required this.child,required this.onPressed,this.style});

  @override
  Widget build(BuildContext context) {
    return EnhancedButton(onPressed: onPressed,
        style: style,
        enhancedStyle: EnhancedButtonStyle(
      gradient: MaterialStateProperty.all(const LinearGradient(
          colors: [ABStyles.darkPink,ABStyles.lightPink],
          begin: Alignment.centerLeft,
          end: Alignment.centerRight
      )),
    ), child: child);
  }
}
